import request from "@/utils/request";

/**
 * 登录
 * @param loginname 手机号
 * @param password 密码
 * @returns
 */
export function login(loginname: string, password: string) {
  return request({
    url: "/api/user/login",
    method: "POST",
    data: {
      loginname,
      password,
    },
  });
}
